FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. Tags
    3. password rules
    Log in to post
    • All categories
    • J

      Solved Rule for validating if a password uses valid special characters / non-alphanumeric characters

      Q&A
      • password rules valid • • johnathon
      2
      0
      Votes
      2
      Posts
      1.1k
      Views

      J

      @johnathon

      These are the steps FusionAuth takes to check whether a password contains special characters:

      Convert the Java String to a char[] (a char is a 16-bit unicode value in Java) Check each character c to determine whether it is a special character using
      !Character.isAlphabetic(c) && !Character.isDigit(c) If any character in the string returns true for the above check, we consider it to contain a special character
    • danD

      What password rule options does FusionAuth have?

      Q&A
      • password password rules • • dan
      2
      0
      Votes
      2
      Posts
      849
      Views

      danD

      A duplicate of https://fusionauth.io/community/forum/topic/438/password-complexity-rules

      But the easiest way to see this is in the tenant API, since that is where they are configured.

      At time of writing, here are the options.

      Screen Shot 2021-05-12 at 1.50.12 PM.png

    • danD

      Login when the passwordChangeRequired field is true

      Q&A
      • login password rules • • dan
      2
      0
      Votes
      2
      Posts
      1.3k
      Views

      danD

      If using the API, you should receive a 203 on Login once you attempt login with the correct password. Your application should check the status code and send the user to the appropriate place to change their password.

      If using the hosted login pages, you should end up on the /password/change page after logging in.

    • danD

      Do password rules apply to existing users?

      Q&A
      • password rules complexity existing users • • dan
      2
      0
      Votes
      2
      Posts
      655
      Views

      danD

      The rules apply only when they change their password in the future.

      We don't have any way of knowing the user's current password.

      You can, of course, force the user to change their password, and then the new password rules would apply. You can do this in the admin ui or via updating the passwordChangeRequired field in the user object via the API.

    • danD

      Password complexity rules?

      Q&A
      • password rules complexity • • dan
      2
      0
      Votes
      2
      Posts
      1.5k
      Views

      danD

      Head over to the admin, and click tenants.

      There you will find your default tenant. edit that to change your password strength etc.

      (You can also do that for multiple tenants if you have them or via the Tenants API.)